‹#›
Inventor API 中的零件图、部件图和工程图
创建工作特征
•有多种方法（AddXXX）可以创建工作特征
•Construction 参数如果为 True，创建的工作特征将是不可见的（对于用户而言)
Public Sub CreateWorkFeatures()
Dim oPartDef As PartComponentDefinition
oPartDef = _InvApplication.ActiveDocument.ComponentDefinition
Dim oPlane1 As WorkPlane
oPlane1 = oPartDef.WorkPlanes.AddByPlaneAndOffset(oPartDef.WorkPlanes.Item(1), 4)
Dim oAxis1 As WorkAxis
oAxis1 = oPartDef.WorkAxes.AddByTwoPlanes(oPlane1, oPartDef.WorkPlanes.Item(2))
Dim oPlane2 As WorkPlane
oPlane2 = oPartDef.WorkPlanes.AddByLinePlaneAndAngle(oAxis1, oPlane1, _
System.Math.PI / 4)
End Sub